package com.live.activity;

import android.content.Intent;
import android.os.Bundle;

public class LiveNotificationActivity extends LiveBaseActivity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		/* 获取Intent中的Bundle对象 */
		Bundle bundle = this.getIntent().getExtras();

		// 判断当前打开窗口是否是消息中心，如果是，则关闭再重新打开。
		if (LiveBaseActivity.activityList.get(LiveBaseActivity.activityList.size() - 2).getClass() == LiveInfoCenterActivity.class) {
			LiveBaseActivity.activityList.get(LiveBaseActivity.activityList.size() - 2).finish();
		}
		Intent intent = new Intent();
		intent.setClass(context, LiveInfoCenterActivity.class);
		bundle.putString("rCount", "0");
		bundle.putString("mCount", "0");
		bundle.putString("fCount", "0");
		intent.putExtras(bundle);
		context.startActivity(intent);

		// 关闭当前窗口
		this.finish();
	}
}